const mysql = require('mysql2');

const connection = mysql.createConnection({
  host: '192.168.1.121',
  user: 'root',	//线上为：kevin
  password: 'root',
  port: 3306,
  database: 'localCloundStorage'
})

// 连接数据库
connection.connect((error) => {
  if (error) {
    console.error('Failed to connect to database:', error);
    return;
  }
  console.log('Connected to database!');
});


module.exports = {
  connection
}